package com.hao.demo.zoo.server.controller;

import com.hao.demo.zoo.entity.DepotsOperateLogEntity;
import com.hao.demo.zoo.server.service.DepotsOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Author Hao
 * @Date 2021/6/3 15:05
 * @Version 2.0
 */
@RestController
@RequestMapping("/log")
public class DepotsOperateLogController {

    @Autowired
    private DepotsOperateLogService depotsOperateLogService;

    @GetMapping("/getById")
    public DepotsOperateLogEntity getById(@RequestParam("logId") Integer logId) {
        DepotsOperateLogEntity entity = depotsOperateLogService.getById(logId);
        return entity;
    }
}
